package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhenchl
 * @since 2022-02-17
 */
@TableName("fn_wireless_command")
public class WirelessCommand extends Model<WirelessCommand> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品id
     */
    private String proId;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * 缓存命令id
     */
    private String uuid;
    /**
     * 设备身份编码id
     */
    private String imei;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 过期时间
     */
    private String expiredTime;
    /**
     * 命令下发时间
     */
    private String sendTime;
    /**
     * 下发状态
     */
    private String sendStatus;
    /**
     * 间隔时间
     */
    private String intervalTime;
    /**
     * 备用字段1
     */
    private String about1;
    /**
     * 备用字段2
     */
    private String about2;
    /**
     * 备用字段2
     */
    private String about3;
    /**
     * 命令字符串
     */
    private String args;

    private Long deviceId;//设备表主键id
    @ApiModelProperty(value = "缓存类型")
    private int type;//缓存类型
    private String accessKey;//access_key


    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    @ApiModelProperty(value = "创建日期", required =false,hidden=true)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(String expiredTime) {
        this.expiredTime = expiredTime;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(String intervalTime) {
        this.intervalTime = intervalTime;
    }

    public String getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(String sendStatus) {
        this.sendStatus = sendStatus;
    }

    public String getAbout1() {
        return about1;
    }

    public void setAbout1(String about1) {
        this.about1 = about1;
    }

    public String getAbout2() {
        return about2;
    }

    public void setAbout2(String about2) {
        this.about2 = about2;
    }

    public String getAbout3() {
        return about3;
    }

    public void setAbout3(String about3) {
        this.about3 = about3;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WirelessCommand{" +
        "id=" + id +
        ", proId=" + proId +
        ", devId=" + devId +
        ", uuid=" + uuid +
        ", imei=" + imei +
        ", createTime=" + createTime +
        ", expiredTime=" + expiredTime +
        ", sendTime=" + sendTime +
        ", sendStatus=" + sendStatus +
        ", intervalTime=" + intervalTime +
        ", about1=" + about1 +
        ", about2=" + about2 +
        ", about3=" + about3 +
        ", args=" + args +
        "}";
    }
}
